package com.hby.game

import android.app.Activity
import com.helloandroid.AppUtil
import com.helloandroid.MyApplication
import com.helloandroid.R
import com.helloandroid.ads.NativeAdUtil
import com.helloandroid.base.BaseDialog

class HbyEmptyDialog(val activity: Activity) : BaseDialog(activity) {
    override fun getContentViewResId(): Int  = R.layout.dialog_hby_empty

    override fun initView() {
        findBtn(R.id.btnClose).setOnClickListener {
            closeAndExit()
        }
        AppUtil.appViewModel().hbyAward(0)
        NativeAdUtil.showNativeAd(activity,findViewById(R.id.nativeView))
    }

    override fun initData() {
    }
    private fun closeAndExit(){
        dismiss()
        activity.finish()
    }
}